headBytes = bytes.slice();
// First try decoding headers as UTF-8.
Charset utf8 = Charset.forName("UTF-8");
String headUTF8 = utf8.decode(headBytes).toString();
String[] headLines = headUTF8.split("\r?\n");
// Read Newsgroups, Followup-To, and References headers
String newsgroupsHeader = getHeader(headLines, "newsgroups");
String followupToHeader = getHeader(headLines, "followup-to");