update regex
disallow trailing dots in file/directory names, rework error messages, remove unused strings
fix lint error, rearrange error message and emphasize invalid characters
Merge pull request #7772 from adobe/jeff/fixFolderDots

Disallow file and folder names that end with dots