AccessibleByteArrayOutputStream used to return the entire backing buffer, but because the buffer is often larger than the data stored within it results in the end of the buffer being empty (or a sequence of NUL characters in ASCII). This is harmless for most export types as the empty bytes won't be referenced, but it does make downloads bigger than they should be.
AccessibleByteArrayOutputStream used to return the entire backing buffer, but because the buffer is often larger than the data stored within it results in the end of the buffer being empty (or a sequence of NUL characters in ASCII). This is harmless for most export types as the empty bytes won't be referenced, but it does make downloads bigger than they should be.
This closes #702.