Fix escape handling in single-quoted strings.
Fix regex test that was using the wrong kind of string.
Match existing style better.
Merge pull request #409 from jerith/jerith/single-quoted-strings

Fix escape handling in single-quoted strings