fix the encode when write data to file