ruby-gettext/gettext — pull request #20 by terceiro (2013-09-13 19:17:00+00:00)
Title: Normalize charset

On my system for some reason my locale was set to pt_BR.utf8, and that makes Encoding.find() be called with "utf8", which is not how Ruby represents "UTF-8". The last commit in this branch will try a little harder to find a matching encoding amongst the ones supported natively by Ruby comparing the input charset name with modified versions of the Ruby encoding names.

I have since figured out why my locale was set like that and was able to revert it to the expected charset name, but I think there could be a lot of other people with such locales out there