definitive fix for the special filenames bug