If I’m not mistaken the URL to be valid should not include spaces and if you replace the space with %20 it will work as expected. We do this conversion automatically if you use the link panel ⌘K. You can also drag and drop the file in the URL field in the panel and prepend file://