Unified file filter handling so that FilenameFilter and FileFilter can
be used interchangeably