Rename file.type to file.extension.