Yes, I don't see a lot of purpose in bytes::length. But if you do want to do that, it's better than removing the utf8 flag and calling the normal length.
But I have enormous questions around what the OP is even trying to do in the first place.
--
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |