Hex to Base 64 conversion