Fix `write_to_clipboard` on Windows when string contains embedded nulls (#64911)

The Windows clipboard stores a null-terminated string. If a string
contains an embedded null, copying it to the clipboard will truncate the
pasted text at that point. To work around this, replace embedded nulls
with spaces when copying text to the clipboard.

Fixes https://github.com/zed-industries/zed/issues/52330

Release Notes:

- N/A
- [GPUI] N/A
decbf641b1John Tur committed on 9/29/2026, 10:35:25 PM· committed by GitHubparent263fb11
2 files changedLine totals unavailable