small refactor to latin1 strings

this will improve a little performance
Merge pull request #4 from zhuomingliang/master

small refactor to latin1 strings