use charset from request to decode the json input stream