Properly escape parentheses