Deletes current contents of this, and inserts text instead.
text
If len is -1, text must be nul-terminated. text must be valid UTF-8.
len
a TextBuffer
UTF-8 text to insert
length of text in bytes