fix utf8, and error message