Issue 119: Error while writing $\

- Add an escaping method for cypress
- Add a test covering this case