The input language is triples in the W3C standard RDF N-Quad format.
and
Literals may not contain the characters " , LF , or CR . In addition ’ \ ’ (U+005C) may not appear in any quoted literal except as part of an escape sequence.
Dgraph does not strictly use the W3C standard. Use something similar with this standard. However, if you give an example of this literal it would help to understand how.