Output correct logicalPath on Windows

When running on Windows the asset's `logicalPath` may contain backslashes.
Replace backslashes with slashes to make sure we have a valid `logicalPath`.

(Please ignore the "Revert "Convert `source` to a String"" commit in this one - I got a little mixed up with things and it isn't relevant to this commit.)