replace fromLocal8bit with fromUtf8. we assume that the encoding of input files is UTF-8.