fix encoding of "%" character.