Fix encode for marks without properties.