Text this: International environmental agreements in the presence of adaptation