re #766: urllib.urlencode() needs str not unicode.

re #766: urllib.urlencode() needs str not unicode.