decode the UID str to bytearray