Part of the process makes sure all line endings are in DOS format (CRLF), which is probably required by specifications.
If XML_RPC_Message::setConvertPayloadEncoding() was set to true, the payload gets passed through mb_convert_encoding() to ensure the payload matches the encoding set in the XML declaration. The encoding type can be manually set via XML_RPC_Message::setSendEncoding().