Hi Zed,
you are right! I tried to activate another theme, Twenty Seventeen, and the problem is still there. At this point I think the problem is WordPress.
I was able to solve it by inserting the apostrophes with the Symbol button instead of the keyboard.
Thanks for the support.