Arbitrary length base 16 to base 64 string conversion