dynamically escape % sign and brackets { } in a string,"s = s.replace('{', '{{').replace('}', '}}')"