Rewrite spurious encoding test, as utf8 is sometimes useful.