First step - delete the one with the bad extension
Step two - re-add the new file with a better extension.