- added 2 methods on encoding charset files