Get the URI from the file dialog rather than the filename.