Fixed a character encoding bug in the thirdparty plug-in, and finally
introduced some long overdue infrastructure for comprehensively testing
our character encoding support within the spec tests.