perf tools: Fix backslash processing on trace print formats