Fix parsing of privmsgs with non-ascii characters.
 Fix invalid variable names.