Add `escapeMessage` to api