Added additional "escape" layer for event "args"
in order to work with "'" in the String,
as encodeURIComponent does not escape "'".
Updated unit test