encode url_values so urllib.urlencode() can handle unicode
added logging facility
Merge pull request #10 from maloi/master

Fix unicode issues with urllib.urlencode()
added logging facility