Added support for a default filename.
Made the dialog always try to add the extension if not set.