Encode widget data attribute using encodeURIComponent.
Changelog entry.
Merge branch 't/11811b'