Fixed problem when literal is followed by a non-literal (#33)
This problem manifested itself with GMail's IMAP. Patch based on what Fergal sent in with the bug report.