support prefixing with /

This fixes a bug where you couldn't call `.prefix('/', fn)`.

We now handle `'/'` with a special case.

cc @Matt-Esch @jwolski