Fix processing files with non ascii symbols