def lfs_quote(string, encoding="utf-8"):
    return urllib.quote(string.encode(encoding))
Shortens a string to a repeatable mangled version with the given length.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/core/utils.py/lfs_quote--crossover with--dataset/ETHPy150Open django/django/django/db/backends/utils.py/truncate_name