Add Content-Length to SP responses.
Fixed up URL quoting a bit.
Merge branch 'master' into python3
Converted URL quoting to Python3.