I believe this should strip out the double `//` as it gets normalized to a single one, resulting in `a/path/module`. Added the test, but changed the assertion, and because of that, that's why some of the resource:/// and chrome:// uris fail (because they do strip them out, but those need to stay)