fix multiple %01 wildcards

multiple off-by-ones, wrong syntax and stale constants on two lines
Merge branch 'fix-multiple-uri-wildcards' of https://github.com/TauPan/cpe into TauPan-fix-multiple-uri-wildcards
Added simple test.
Merge branch 'TauPan-fix-multiple-uri-wildcards' into develop. Closes #7 and closes #8