Set filename hints for dialogs.

Ubuntu's GTK has a slightly different file dialog that really didn't
work well with the previous code as it didn't get filename hints.