Encode client secret before saving