Added autoescape tests, fixed lack of single quote escaping.