Fixes fromString().

url.parse() returns null for some components depending on certain cases.
Fixes joining paths.