fix utf-8 related error