Correctly handle file names that contain a dash.