Fix unicode error with admin widgets

Widgets with Unicode text in them raised an error, as an ASCII format string was used to compose the widget and its associated JavaScript. This fix makes sure all strings are Unicode to fix this.

Fixes #815.