Fix redirect/encoding in some browsers.

Firefox would convert the + to a space, so now we properly encode it.