Some encoding functions, convert spaces to + symbols. This restores to %20 which is what is valid in URLs. In particular, i ported this from our PHP SDK.