isValidFilename() to range
Merge pull request #2173 from WalterBright/isvalidfilename-range

isValidFilename() to range