I\'ve got a list of words (domains in my case) and I need to split this list into groups, each group should contain not more than N chars (=bytes). One important thing is that t