Wrong sizeof() was returning size of a pointer.

This was declaring wrong buffer size for URIs.