Bug 1042967 filter filenames before loading the file