Renamed "getCharset" to "guessCharset".