add missing file extension to file name