'real_value, coded_value = value_encode(VALUE)
Called prior to setting a cookie\'s value from the dictionary
representation.  The VALUE is the value being assigned.
Override this function to modify the behavior of cookies.'

def value_encode(self, val):

    strval = str(val)
    return (strval, strval)
