Retain EOF (^Z), remove bad commas ',' in map