stream: implement writeAsciiString and writeUtf8String