Fix utils test suite errors
Merge pull request #322 from passy/utils-assert

Fix utils test suite errors
Use _compat.urlparse.quote