change the extension of the file name