Rely on newline character at the end of a toRdf test

as other's do. See https://github.com/json-ld/json-ld.org/commit/177b5041c9fc145d84ddb307b8f11c86c805fca2#commitcomment-3365483