[ok][bug][fix] Bug found and fixed: Not replacing all unique substrings in string escaping