Fix Marionette tests.
Add charset conversion error recovery for DOM plugins.