//// Hydration payload encoder. Mirrors `decode` — writes JSON the //// client decodes as island flags. Escapes `<`/`>` for safe `