fixing urlencoding of unicode strings
Merge pull request #4 from StephenHamilton/patch-2

Fix urlencoding of unicode strings.