fix file encode format bug