Why is this function here instead of org.voltdb.util.Encoder?