Not sure if its relevant: when I want a URI for file, such as D:\Documents\Hart's Style Guide.pdf, I use a string such as this ==>> file:///D:/Documents/Hart%27s%20Style%20Guide.pdf
Essentially, prefix with "file:///", change back-slashes to forward-slashes, and url-encode any non-alphanumeric characters.
BR
|