util: HTTPClient: fix content handler

json.loads()'s decoder may fail depending on charset.