Make charset conversion work with ruby 2.0

I'm assuming nothing below 1.8 is supported.