Add utilities to marshal and unmarshal strings

Change-Id: I4df9a765d449f64783bc94a322080dfd7fb3c640