Avoid to_str and fix build errors in test code.
Implement DOMSlice::as_vector.
Implement DOMString::from_buffer.
Implement DOMString::split_first.
Implement DOMSlice::replace.
Implement DOMSlice::{split, split_whitespace}.
Avoid indexed access to strings in htmlserializer.
Make the representation of strings private.