public static final byte[] getBytes(final String k) {
        if (k == null || k.length() == 0) {
            return null;
        }
        try {
            return k.getBytes(DEFAULT_CHARSET_NAME);
        }
        catch (final UnsupportedEncodingException e) {
            throw new RuntimeException(e);
        }
    }
Utilities for byte process

@author dennis
metamorphosis-commons/src/main/java/com/taobao/metamorphosis/network/ByteUtils.java