(PE-6019) Encode string request body per Content-Type header

This commit encodes a request body string per the content of the
Content-Type header.  In the event that no charset is specified in the
Content-Type header, the charset is set to UTF-8.  Previously, the
request body string was always encoded to ISO-8859-1 and was not
necessarily in sync with the value of the Content-Type header.
sucks that we have to walk the array like this when we're about to walk it again and lower-case them all in prepare-headers, but, prolly not worth blocking the PR over.