Use `unicode(e)` instead of `e.msg` as that is now the recommended standard (IIRC, please confirm).