Improved utf8BytesToString to handle higher code points and detect invalid byte sequences.