ref #1 improve message of handling mojibake

- add encoding error message
- fix trivial mistake