use the decimal HTML escape code for single quotes instead of the hex one so webkit-based browsers properly translate the code in form fields
Fix the tests related with single quotes being escaped

Closes #9144
Fixes #9145