Is there any reason not to use regular `path` operations and then normalize to URLs when setting the source name? I think all that is needed is just replacing `\` with `/` to convert to URL, and that is only needed on Windows.