Make percent-{en,de}coding public.
Backport to rustc 64b990d 2014-06-26