Rewrote newsgroupize, fixing a bug found by Jens Schleusener.