Handle spaces in the URI