Added validation error when the uri contains spaces.