new parser state to distinguish end-of-headers and entity state