updating file encoding