Move encoding conversion routine out of mailinfo to utf8.c