private static byte[] asBytes(final String s) {
        return s.getBytes(StandardCharsets.US_ASCII);
    }
byte conversion based on ASCII character set regardless of the current system locale.

@param s the string to get as bytes
@return a byte[] array in ASCII charset
primefaces/src/main/java/org/primefaces/virusscan/impl/ClamDaemonClient.java