Make sure to encode all the properties