Start of Haskell code to decode utf7

Use the counterpart Net::IMAP method as a reference