fix string parsing (long-string handling)
port over old tests, and handle PNAME_NS (rdf:) properly