Shrink long filenames properly