Fix edge case with single characters

The global match failed with a single character.
Do not convert text inside of elements
Only convert text inside elements that are not SCRIPT or STYLE
Add tests for double quotes
Update comment