Fix utf8 encoding for ruby 1.9