Convert metadata using php unserialize