serialize a features hash