6.62: improved match() and validnick() utilities.