urlencode all path params

Closes #275