Add logic to escape all parens when they're unbalanced or all quotes when they're unbalanced, update specs