Encode the string as UTF-8

To use encoding other than UTF-8 to parse a file, set the IO Encoding

    File.open(filename, "r:ASCII-8BIT").bdecode
make CI happy
move encoding detect into initialize
Merge pull request #18 from liudangyi/utf8-encoding

Encode the string as UTF-8