def prefix_encode(a, b):
    i = first_diff(a, b)
    return chr(i) + b[i:].encode("utf8")
Compresses string b as an integer (encoded in a byte) representing
dataset/ETHPy150Open tallstreet/Whoosh-AppEngine/src/whoosh/util.py/prefix_encode