Fix latent bugs in the %xx unescaping