Codify path adjustment stuff for url.parse

Fixes #14