Add legacy escaping for dumped logs