Use base64 encoding and don't convert to json.