Fixed a bug where the xref table would have incorrect offsets.

The additional "\n" character upon the final ".join" of data wasn't taken into account. This may fix #173 and #147.