fix load_file_from_uri so not dependent on the filepicker