parse MAC address properly