modified notifier.js to handle UTF-8 messages

when js error message contains UTF-8 strings, api could not unescape
string encoded with escape(), changed it to encodeURIComponent