update file encoding