Fix URL encoding of space; closes issue 1

as pmichaud++ points out, the blank should only be encoded as "+" for
application/x-www-form-urlencoded, not for general URLs; there it should
simply be %20