Fixes for Unicode mailbox names

Hi,

I'm using your script to migrate many users from POP3 to IMAP (Dovecot) and it is a solid base! I did have to add code in it to support Unicode mailboxes (we have many users that use French accented chars in their folders name) and sub-folders.

Thanks for the script!