Shouldn't this be percent-encoded..? See http://stackoverflow.com/questions/1695183/how-to-percent-encode-url-parameters-in-python for an example of how to do this.