turn Uid from list to binary