Fix escaping logic

- Unescape in core/event
- Escape in core/action

Related: #207