convert input file to unicode