Cleaning file encoding