Revert unnecessary "fix handling of unicode when counting codeblock lines" + document (#30368)

After merging #30364 I realized why it was unnecessary to fix the code,
and was more efficient before. UTF-8 does not use the standard 0-127
ASCII range for multi-byte chars. So this reverts that change and
documents why the code is valid.

Release Notes:

- N/A
30f3efe697Michael Sloan committed on 5/9/2025, 11:38:03 AM· committed by GitHubparent023a608
2 files changedLine totals unavailable