fix encoding of "%" character