Do not use (possibly unterminated!) StringRef::data() but str().