lib/core: Fix bug in StringByteView, misuse of `String::length`