Urlencode the path portion of a URL. This is the same function as urllib.quote in the Python standard library. It’s exported here with a name that’s easier to remember.
The markupsafe package has a function soft_unicode which converts a string to Unicode if it’s not already. Unlike the Python builtin unicode(), it will not convert Markup (literal) to plain Unicode, to avoid overescaping. This is not included in WebHelpers but you may find it useful.