inputfile encoding fix.