def get_str_from_wsgi(environ, key, default):
 value = get_bytes_from_wsgi(environ, key, default)
 return value.decode(UTF_8, errors='replace')

def get_str_from_wsgi ( environ , key , default ) : value = get_bytes_from_wsgi ( environ , key , default ) return value . decode ( UTF_8 , errors = 'replace' )
get a value from the wsgi environ dictionary as str .