Faster _WriteEncodedString*

Try and handle the string as if it has no special encodings (in which
case it can be written in a single Write() call), only falling back to
individual characters if required.