Review ALL uses of single and double quotes:
- Use singlequotes instead of doublequotes whenever possible. There is nothing which needs to be escaped in singlequotes so they are safer. See http://mywiki.wooledge.org/Quotes
- I've also made sure to look for any unescaped things in doublequotes which would have to be escaped. (This commit doesn't contain any fixes for such cases, but while reviewing I found one bug, which was already fixed in the previous commit)