Fixed file:// handling bug on windows