in reply to OT: Outlook wants to terminate links at whitespace

If it really was an HTTP URL or any kind of URL, then you could replace the space with %20. But it's neither a URL, nor is HTTP involved.

The fix is to actually provide a URL. Note that forward slashes must be used.

file:////myserver/mydir%20space/dir/