revert to older code as Storable has utf8 issues

fixes an OOM error with message_delivery.pl task.