Fix bug where EOF marker got split over two lines resulting in an illegal stream. Submitted by: Larry Moore <lmoore@providerlink.com>