Fix the invalid byte sequence bug on UTF8 locale

Problem was left at the time of the UTF8 locale
https://github.com/ongaeshi/milkode/issues/69
Fix failed test on Ruby 2.1