Fixed wrong substring of tail in WSGI Adapter

Fixed an issue where the WSGI Adapter would trim the tail of the
request URI using the wrong length.