Xerox scanners/photocopiers randomly alter numbers in scanned documents

When scanning a document, one would assume that what goes in on one end will look the same as what comes out of the other. That does not seem to be the case for Xerox scanners, which are using the JBIG2 compression algorithm, meaning that the document is split up into small patches, and similar ones are grouped together and stored only once.