TEIIDDES-2254 Added logic to prevent changing file extension.