app: show file:// uris as filename in the close and quit dialogs

and make the quit dialog's "Exported to foo" string easier to
translate by constructing the markup in a separate step.