fix the b64 encoding