Fix request_access_token to understand content-type with charsets

Prior to the change, request_access_token would fail again token endpoints that returned content-types of the form "application/json;charset=utf8".