2cc453284d5 introduced this function call to for mail.py. This broke Python
3 because shlex.quote() expects str, not bytes. In order to unbust it,
we need to normalize bytes to str then go back to bytes to appease the
caller.
This is a bit ugly. But I don't see any other obvious solution.
It might be a silly questions, but why are we going through latin-1 instead of utf-8 or any other crazy encoding ?