Fixed a bug in g.reportBadChars, resulting in a collapse in complexity.

Leo build: 20141203135320