serialize objects for POLS storage of non-utf8 data