serialized data can contain null bytes, store them in blob

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
Merge pull request #311 from echampet/serialize

serialized data can contain null bytes, store them in blob