(PDB-708) add delimiter escaping functions

Signed-off-by: Ken Barber <ken@bob.sh>