chop long filenames