Ruby 1.9: fix issue with UTF8