Fix test check for refusing filenames under 200 characters and shorten filenames over 200 characters for Windows users. Closes #1519