If you have problems with your params encodings, use a Rack middleware to encode them before rails params parsing code is executed.
First, build a class according to the signature of a rack middleware layer.
#lib/force_params_encoding.rb
class ForceParamsEncoding
def initialize(app)
@app = app
end