encoding: In BinaryXmlEncoder.getOutput(), use flippedBuffer().