Record control characters in log files