Don't pass unicode to urlencode in Python 2

Fixes #23
Merge pull request #24 from dasevilla/unicode-urlencode

Don't pass unicode to urlencode in Python 2