modify 'get valid charset' method
Merge branch 'master' of https://github.com/Applexis/libetpan