Open
Description
I was aware that the function is just a simple "good enough for now" (because I wrote it with that mindset).
I mean, it was like, better this than nothing.
However, I recently was hit by some multi-byte utf8 string that blew up on me and I reverted now to using base64 encoding.
however, we should consider doing escaping of such strings correctly.
Maybe we can take "inspiration" from this function: