improve handling of file urls (only handle file:/// on windows)