Use unserialize instead of deserialize because of objects (#991)