use Glib URI utility function to generate a local filename from a URI, rather than hand-crafted code