Added support for setting charset for request body encoding.

I added support to explicitly set the charset to encode the request body. The need for this occurred on a system with system default encoding != UTF-8 where REST calls should nevertheless be made UTF-8 encoded. So far there seems to be no convenient way to influence the request body encoding.