make request URI mutable

This is necessary for an HTTP server to support things such as URL
re-writing on requests