You could sanitise the raw response with Enum.reduce before trying to decode it, dropping each value that results in an incorrect codepoint.
You could sanitise the raw response with Enum.reduce before trying to decode it, dropping each value that results in an incorrect codepoint.