fix for ruby 1.9 and utf-8
Merge pull request #2 from bkuo/fix_r19

fix for ruby 1.9 and utf-8