Quote IMAP arguments if needed

IMAP specifies that some characters should be quoted when part of a
command argument. Check for those characters and quote that string if
any one of them is found in it.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>