@staticmethod<EOL><INDENT>def _encode_dict_as_string(value):<DEDENT>
<EOL>if value.startswith("<STR_LIT>"):<EOL><INDENT>value = "<STR_LIT:{>" + value[<NUM_LIT:2>:]<EOL><DEDENT>if value.endswith("<STR_LIT>"):<EOL><INDENT>value = value[:-<NUM_LIT:2>] + "<STR_LIT:}>"<EOL><DEDENT>return value.replace('<STR_LIT:">', '<STR_LIT>').replace("<STR_LIT>", "<STR_LIT>").replace("<STR_LIT:\n>", "<STR_LIT>")<EOL>
Takes the PLIST string of a dict, and returns the same string
        encoded such that it can be included in the string representation
        of a GSNode.