Improve url decoding to involve fewer steps, and less copying
Merge pull request #157 from bastih/master

Improve url decoding to involve fewer steps, and less copying