Revert "fixed broken unit test after changes in EOF handling"

This reverts commit b934bbb039cf34cb93c1d99209533bddf1a792bc.
Revert "fixed error causing parsers to stop processing when there's a \0 character in the input "

This reverts commit 50ae63fe0585a7fe0da4a8abe1f42b15546a02c9.