Ensure log format is escaped when writing conf file.