Add a basic test for an invalid encoding type and fix the Readablity class