Escape path URI components, so that backends etc with spaces work.

URIs with spaces in them are passed un-escaped to Curl, which doesn't do the escaping itself. Add URI.escape calls on the path components (which will contain spaces if, eg, a backend name contains a space.)

Fixes #35.