fixed error causing parsers to stop processing when there's a \0 character in the input