file: add better Windows support for file:// URIs

Closes #3.