Add functions for brace escaping