imap: Fixed escaping of mailbox names

Used imap_atom() to escape mailbox names in imap_select().