URI handling code is not OOM resilient as pointed out by Dan Berrange, add a small comment in the header