request_encoding middleware