make charset conversion work with ruby 2.0
Merge pull request #34 from mhfs/ruby_2

Make charset conversion work with ruby 2.0