lowercase file extensions before validating formats