limit length of generated filenames