Set charset in 'content-type' header for POST requests.  Fixes #4741.