fix failing code and test on Windows... (Paths.get() was throwing exception for URLs)