The dialog will not ask to confirm overwrite if the file that exists contains some extension and you enter the same base name but without the extension. For the filesystem these are two different files. If you're adding the extension manually, you also have to manually ask for overwrite confirmation.