Use CharEncoding class to find encoding string