Add auto UTF8 support

close #7, thanks @Lockzi for the suggestion