Processes a string by removing invalid characters for the file system and limiting its length.
The original string to be converted into a file name.
The maximum length of the file name (default is 255 characters).
Processes a string by removing invalid characters for the file system and limiting its length.