Support UTF-8 for encoding/decoding widget links.

`atob` and `btoa` do not support UTF-8 characters. The modification in this pr supports UTF-8 characters in dashboard data.