As a part 2 to my post on Validating a Filename to ensure it conforms to Microsoft Windows naming convention, refer to:
I also wanted to demonstrate how we could alternatively sanitize any proposed filename. So instead of validating, or reporting back issues with the proposed filename, how we could simply eliminate the issues and return a valid filename.

