public static byte[] decode(String b32) {
        if (b32 == null)
            return null;
        if (b32.length() == 0)
            return new byte[0];
        byte[] buf = new byte[b32.length()];
        int len = CodecUtils.sanitize(b32, buf);
        return codec.decode(buf, len);
    }
Decodes the given base 32 encoded string,
skipping carriage returns, line feeds and spaces as needed.
aws-java-sdk-core/src/main/java/com/amazonaws/util/Base32.java