Defend against https://bugs.python.org/issue32330.
Fixes #441 (closed)
This defends against https://bugs.python.org/issue32330 by adding UnicodeEncodeError to the exceptions caught in Message.as_string().
Edited by Mark Sapiro
Fixes #441 (closed)
This defends against https://bugs.python.org/issue32330 by adding UnicodeEncodeError to the exceptions caught in Message.as_string().