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

Fixes #35.