Fix issue with file names that contain consecutive blanks.

- The file selector failed to filter and select these files  properly.