Filter out non-printable characters which make XML parsers to puke.