add encoding and update readme.md