fixed bad escaping for logs