Switch to using shared Utils convertDictionaryToJSON.