Efficient encapsulation of toxic dye from wastewater using biodegradable polymeric adsorbent