encodes body in provided charset
Merge pull request #2199 from opf/fix/encoding_in_txt_request