Improved WriteChars and WriteBytes