Mask encoding: A general instance mask representation for object segmentation