replace the python stripper with a sed script

that removes non-printable characters and has better behavior when the message contains `>` or `<`.