Properly fix path-with-spaces bug.

The previous fix happened to work, but it did the URL decoding
in the wrong place.