fix failing test on IE11.

turns out the internal escaping stragety can differ between browsers. We
should defer to the browsers defaults