this encoding happens twice, see `wsgi.errors` above - probably best to cache the result there