Properly escape delimiters