mailinfo: handle charset conversion errors in the caller