Bugfix in Rails parser for requests with invalid encodings