Query rewriting now accepts literals with unbalanced curly braces