Fix RequestDispatcherRequestWrapper inconsistency between `getRequestURI` and `getRequestURL`

Fix for #861.
please add a test to make sure this doesn't regress, and that it's behaving as expected.