Similar to "escape_chunk", this function tries to prefix all characters tagged in the <map> with the <escape> character. The specified <string> contains the input to be escaped.