Using str objects only and avoid the automatic quoting from imaplib.

fixes #415