def _encode_content(self, uri, content):
        """
        Join node uri and content as string and convert to bytes to ensure no pickling in memcached.
        """
        if content is None:
            content = self.NONE
        return smart_str('|'.join([six.text_type(uri), content]))
Join node uri and content as string and convert to bytes to ensure no pickling in memcached.