encodeUtf8: squeeze out a little more fast path performance

If we're about to drop from the fast to the slow path, try to cut
our losses by pushing out a few more bytes before we give up.