std: str.as_bytes_with_null_consume() => str.to_bytes_with_null()