couple of micro-optimizations for #8826

- don't call utf8sizeof() twice when writing a Char
- faster sizeof(::SubString{ASCIIString})

About 6% faster.