Properly escape text snippets for monospaced font-ing.