That’s right. Dgraph doesn’t escape and unescape. So you need to escape and unescape on your end.
Some time ago I thought about having a directive to escape and unescape on the fly. Not sure if I have opened a feature request for this. If not, feel free to ask it.