want me to move things like this to Util?  In guava, it would end up being in ByteStrings, I suppose.