Added charset method
Bugfix