Fixes #1961: It now shows confirmation dialog when overwriting existing file, even if the file extension is not specified

Change-Id: Ia2b5cbfb84e86c81a6d7fe92073fe0b6d9bc23a4