This will fail if `out` has a multibyte trailing character. It should be one of

```rust
out.char_at_reverse(out.len());
// or
out.as_bytes()[out.len() - 1] != '"' as u8;
```

(The last is valid because all 7-bit ASCII bytes in a UTF-8 string represent that ASCII value.)