def wsgi_to_bytes(data):
    if isinstance(data, bytes):
        return data
    return data.encode('latin1') #XXX: utf8 fallback?
coerce wsgi unicode represented bytes to real ones
dataset/ETHPy150Open Eforcers/gae-flask-todo/lib/werkzeug/http.py/wsgi_to_bytes