highlightControlCharacters

Replace control characters with their escaped representation.

This is useful for debugging purposes, as it allows you to see the actual control characters in a string. It can help you understand why you're getting a "test string" does not match "test string" error, for example -- one of those strings might have a control character that's not visible.