Bug 1042967 filter filenames before loading the file

`filterNameRegex` can still be undefined here, even if `name` cant..