fix file encode problem