MDL-25215 fix file.JPG.jpg extension problems