Fixes notifier.js sending invalid XML in backtrace lines

Similar to #514, backtrace lines were not being properly escaped and could cause invalid XML if for instance you're using the console and the backtrace contains <anonymous>.