Ensure urllib.quote input is `str`, not `unicode`