Merge pull request #178 from cuixin/3.0

fixed char encoding on mac os.