Consider a simple object Shop which has a string attribute \'name\'.
Our example shop has the name:
Sam\'s Diner & Cafe - \"deelicious\" <
Sam\'s Diner & Cafe - \"deelicious\"
This appears to have been something broken in 2.3.16. See https://github.com/rails/rails/issues/9108 for a fix that worked for me at least.