Make confirm_dialog general, fix '" issues.