unconditionally deregister adapters in tearDown

This also fixes test_unacceptable_charset which was
leaving an adapter registered
fix LookupError on non-existing charset