Change base64 to hex for url safe