Old code to fix malformed CSV files.