Basic URL canonicalization. Fixes #84

...#84.

No tests because there's no preexisting network tests.
I will, but this is following the existing pattern.