rolling back file name checks

Though these checks also both return as false, and so can be checked that way, certain side cases may slip through... such as files named 0