URI-encode the path in our requests

See: Desk #894