pub fn write_utf8<K: Sink>(s: &str, w: &mut K) -> Result<(), BitError>
Writes the string’s UTF-8 bytes followed by the terminator (via [write], so an embedded '\0' is rejected the same way).
write
'\0'
As [write].