fix incorrect encoding created by URI escaping
make it easier to debug errors