escaped

fun escaped(text: String, reserved: String): String

text with each character of reserved escaped (%2F for /); reserved holds % and ASCII characters only. One scan, and text itself, not a copy, when it holds none of them.