Fixes #23382 Breaking change because any existing snapshots that have unicode keys will need to be regenerated