[CVE-2025-32414] python: Read at most len/4 characters. Fixes #889 by reserving space in the buffer for UTF-8 encoding of text.