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.
Merge remote-tracking branch 'sbisinger/fix_tail' into develop