Changed ChatInstantMessageToCharacter to use StandardCharsets