Fixing filenames for exports and output CSVs.