Convert unicode to str when raising in IMAP server (#4830).