Escaping curly brackets

As per Issue 405
Merge pull request #406 from psiinon/patch-2

Escaping curly brackets