WebUI: Fix WebAPI returned data.
WebUI: Add charset attribute to text content types.