Sanitize paths uniformly, in a Windows-friendly way.

Fixes kinda a #1948 thing.
Related to #1946.
Merge pull request #2065 from jekyll/fix-windows-root-system-thingy