@atiz you deleted your comment again - but actually that works! To be honest, I have never thought about that possibility - when inserting a file link in obsidian, I manually replaced all the spaces with %20 each time…
(In my case, it doesn’t wrap the path automatically, but you can change the template accordingly)