escape static method
Escapes header value according to STOMP specification
Implementation
static String escape(String value) {
var result = value;
for (final entry in escapeSequences.entries) {
result = result.replaceAll(entry.key, entry.value);
}
return result;
}