Optimize UTF_8_Writer

This saves a bit more than 200 ms on Desktop, ~8000 on Mobile.
Nit: here and elsewhere, add space around the `<=` operators.