Basic URL canonicalization. Fixes #84

...#84.

No tests because there's no preexisting network tests.