public static String extractCharset(String line, String defaultValue) {
        if (line == null) {
            return defaultValue;
        }

        final String[] parts = line.split(" ");
        String charsetInfo = "";

        for (var part : parts) {
            if (part.startsWith("charset")) {
                charsetInfo = part;
                break;
            }
        }

        final String charset = charsetInfo.replace("charset=", "").replace(";", "");

        if (charset.isBlank()) {
            return defaultValue;
        }

        return charset;

    }
@DisplayName("default charset information")
    @Test
    void testExtractCharset() {
        assertEquals("UTF-8", TelegramAsyncHandler.extractCharset("Content-Type: text/plain; charset=UTF-8",
                StandardCharsets.US_ASCII.name()));
    }