renames with the correct extension