Let File class validate filenames.