Check that a given filename is valid before setting it on a GtkFileChooserButton