Downcase and upcase do not work with accented characters
Here is the proof:
-> rails c
Loading development environment (Rails 4.2.5.1) cannot load such file -- awesome_print
2.1.6 :001 > "A Á".downcase
=> "a Á"
Here is the fix:
class String def downcase self.mb_chars.downcase.to_s end def upcase self.mb_chars.upcase.to_s end end