URL-escape path segments

Closes #69