Zero the text buffer before writing