The problems with length are not around bytes vs. characters, but that length counts code points. Many logical characters are composed from multiple code points
1. What you call "logical character" is an "extended grapheme cluster", which I abbreviate to "grapheme".
2. length doesn't count code points. length always counts characters (string elements). It has no idea what those characters are as that information is neither available nor needed. They are just 32-bit or 64-bit numbers to length. They could be bytes. They could be Unicode code points. But they aren't going to be graphemes (visual character) as there is no existing system to encode graphemes in a single number.