Strengthen UTF-8 decoding. (#911)
Decoding input bytes by doing `.map(utf8.decode)` assumes that input byte chunks are split at encoded code-unit boundaries. It's safer to use `.transform(utf8.decoder)` which allows encodings to be split accross input chunks. Also changed `.listen(f).asFuture()` to the equivalent `.forEach(f)`.
Please register or sign in to comment