resolve file encoding issue