This sort of thing should be `StrBuf::from_str(s)`—no point in doing it all twice (`from_owned_str` is still fairly expensive).