restore support for pct-encoding with other than utf-8 (yuck)