Rust upgrade: to_owned()
Rust upgrade: StrBuf for serializer.rs
Rust upgrade: More to_owned()
Rust upgrade: priv, StrBuf for decode()