ArgumentError: invalid byte sequence in UTF-8

You might be receiving ‘ArgumentError: invalid byte sequence in UTF-8‘ error if the URL consists of invalid byte sequences like http://localhost:3000/users/signup?%28t%B3odei%29

To get rid of this error, just add the below to your Gemfile

gem 'utf8-cleaner'

and make bundle install.

utf8-cleaner gem removes invalid bytes on the URL and save your app from the page crash……