Fix BinaryOutputStream.