Coerce uri to a native string

Prevents unicode decode errors when combining uri with native strings from the WSGI environ.