Truncate filenames, functions etc if they're too long