fixing issue with multibyte char in the file