Fix a bug about charset setting in http request.