fix the utf-8 file read problem by setdefaultencoding