public virtual int GetByteCount(String s) { var tmp = s.ToCharArray(); return GetByteCount(tmp, 0, tmp.Length); }