I don't see any getter method for charset information. And moreover, If you look at the class, you can see that in this case the behaviour is different, as methods act as setters if called with a parameter, and getters if called without parameters.
Lastly, if $charset variable is null, it...