Apparently urlencode is bad, use rawurlencode

(This is fucking insane, and I hate PHP for this. Fix functions!)