Add missing API MAC address encode implementation