Fixed a show-stopping bug with eight-bit character counts