if (charset==null || StringUtil.isUTF8(charset)) return toUTF8String(b,offset,length);
    public static String toString(byte[] b,int offset,int length,String charset)    {        // TODO - make this more effecient!        try        {            return new String(b,offset,length,charset);        }        catch (UnsupportedEncodingException e)        {            e.printStackTrace();            return null;        }    }