Make rangeExpandedAroundPositionByCharacters to all platforms.