Implement Tokenizer_handle_tag_space(); refactor textbuffer writing.

- Add a test for very long strings of text.