Fix character encoding issue in older Rubies