fix utf-8 file open bug