urlencode(curl, s::SubString)

I'm not sure if this is the best way to handle SubStrings, but it's been my stopgap.