fixed the off-by-one-bit bug for print_as_chars