> We would not have this problem if we all agree to return number of bytes instead.
I don't understand. It depends on the encoding isn't it?