pathurlencode fixes
Merge pull request #92 from sbillard/master

pathurlencode fixes