Escape control characters in backtraces (Bug#6991)