update file encode