Avoid resizing buffer frequently in String::data()