Escape the delimiter first to avoid doubly-escaping percent signs