SIGN IN SIGN UP

#11554: reactivate test_email_codecs, and make it pass.

The fix is to charset.py, which was not doing the encoding to the
correct output character set when doing a body_encode for either
the shift-jis or euc-jp charsets.  There's also a fix for handling
a bytes input in encoders.py.

Patch by Michael Henry, comment changes by me.
R
R David Murray committed
56a9d7e3daff45f5fef206ea42398b4a0505fb47
Parent: de3909d