Account for trailing / in URLs when determining on-disk location. Fixes #84.

No tests because there's no preexisting network tests.