File encoding correction added to program