title: Url encode using python 2.7
body: <pre><code>&gt;&gt;&gt; import httplib
  &gt;&gt;&gt; x = httplib.HTTPConnection('localhost', 8080)
  &gt;&gt;&gt; x.connect()
  &gt;&gt;&gt; x.request('GET','/camera/store?fn=aaa&amp;ts='+str.encode('2015-06-15T14:45:21.982600+00:00','ascii')+'&amp;cam=ddd')
  &gt;&gt;&gt; y=x.getresponse()
  &gt;&gt;&gt; z=y.read()
  &gt;&gt;&gt; z
  </code></pre>
  
  <p>'error: Invalid format: "2015-06-15T14:45:21.982600 00:00" is malformed at " 00:00"'</p>
  
  <p>And the system show me this error. As i want to encode this format to this:  2015-06-15T14%3A45%3A21.982600%2B00%3A00</p>