Issue 119: Error while writting $\

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