Do proper escaping of node names.