Fixed renaming of file extensions