Make checking for duplicated names case insensitive.
This avoids generating filenames with names that only differ by case as they cause problems on case insensitive file systems.