Properly escape text bodies for canned responses

This patch changes the default formatting for text bodies used in emails, ticket thread, and canned response quoting so that white-space in text bodies is properly preserved. Previously, the text was treated as raw HTML and was not properly escaped, nor was the original whitespace preserved.

Fixes #1490