Make long stack traces work in all browsers.

Tested in IE10 and Firefox 20, in addition to the usual Chrome. Tested to not break IE9 and below.