Use SWObjects instead of cwm to check graph equality.
Fix encoding translation for spec validation.
Correctly escape output when serializing spec triples.
Correct escape sequence decoding.