memory reduction writing to OutputStream & fix EOL

reduced memory consumption when writing to OutputStream.
The (NTriples EOL production rule)[http://www.w3.org/TR/n-triples/#grammar-production-EOL] specifies that it needs `CR` followed by `NL`.