txt_peek_header() for unicode file io