Removed unicode calls on py3 in imap adapter