Add option to not consume uri parameter when parsed
Change type of uri flags to uint
Just use len*1.4 for buffer size in raw_encode()
Encode in toString()