Fixed i18n strings with ' not being properly encoded
Fixes #5653