I believe I nailed the % and \ escape / unescape logic except a minor thing I am going to investigate next
string escape utils test