The Problem
With String.Index.encodedOffset being deprecated, there's compiler warnings in various places throughout the codebase. We want to convert over to utf16offset while keeping the same functionality.
Documentation Reference:
https://developer.apple.com/documentation/swift/string/index