Convert parameters dict to UTF-8 before passing to urllib

Fix #228