Escape single-quotes in test-supplied strings.

You currently can't do things like setting an element's value to "I'm a big fan of testing".