allow client to specify charset for response

Hi Team

This code change will expose methods that allow clients to specify charset for the response body. It's especially useful for CJK characters. Could you please kindly take a review and integrate it to master branch if possible?

Cheers,
Shun