This question which I found here is working for me for encoding an Object to a String in order to save to prefs, but how would I convert this code to encode a List