There's no imap_to_utf8 function. You could use probably imap_utf7_encode/decode function but they doesn't work with UTF8. If you have a similiar problem, please enable imap_debug and show as what returns your IMAP server for LIST/LSUB commands (see logs/imap file).