More Unicode optimization, fixed IRCCloud filter

Updated confutil.py to take care of UTF-8 BOMs, fixed startops.py for
Unicode filters. Started closing generate.py's infile (finally) and
stopped counting non-post lines.