Don't use system path separators when computing URL paths.

Fixes issue 7065.