Update stats_func.sh

Commented function xml_encode function returned to active.