Extend integration tests to exercise unicode handling.

urlencode essentially expects everything to be bytes, so UTF-8 encode everything before passing them along to urlencode.
Fix white-space in test/check.py.