fixed: properly escape syntax check characters in the log file