optimizing the all-ascii case to be 15x faster