Properly encode URI paths, closes #222

#222
Merge pull request #224 from UltCombo/map-uri-path

Properly encode URI paths, closes #222