Added a method to encode a user account as a property value.