This approach is known as chunked-transfer encoding. This should work for extended Unicode glyphs also but only b/w Python programs as strings are by default UTF-8 encoded. If another lang like JS comes into play which uses UTF-16, probably have to do additional handling.
TODO: Figure out if there’s a simple means to do cross lang string encoding (that doesn’t sound like it exists) or what are the considerations we need.