This fixes a problem with duplicate extensions for fonts and images with the same base name but different extensions. Closes #1254.