TST added tests for encoding/charset deprecation

Checking the old interface still works.