Remove key_file and cert_file from kwargs since HTTPConnection isn't expecting them.
Encode request body as base64 if it contains binary data.