Added support for setting charset for request body encoding.