Add support for escaping closing braces