def enquote_string(s):
    """Enquotes a value according to the DND protocol rules.  All
    interior quotation marks are doubled, and the resulting string is
    enclosed in double quotations.
    """
    return '"' + s.replace('"', '""') + '"'