fix failing test on IE11.

turns out the internal escaping stragety can differ between browsers. We
should defer to the browsers defaults
Merge pull request #5518 from stefanpenner/IE11

fix failing test on IE11.