Fix content body charset

Call setBody(<string>.getBytes("UTF-8")) instead of directly setBody(<string>).
This commit also adds header "Content-Type: application/json; charset=utf-8" for JSON contents.