Rudimentary whitespace filtering.

\r and \n are particularly nefarious, because they lead to ill-formatted SMTP
requests or improper CSV generation in reports.