This commit also introduces integration tests to test the status quo regarding encoding. Closes gh-33071