also the need to deal with wsgi encoded uri's (which are latin1 decoded byte strings)