dropping dependency on charset package