Issue 119: Error while writting $\

- Add an escaping method for cypress
- Add a test covering this case
New pass done for issue 119

- More characters esacped
- Better test
- Style improvments
Merge pull request #120 from BenjaminVanRyseghem/issue_119

Issue 119: Error while writing $\