fix %-quoted handling