support files with non-lowercase file extensions.