Fix string.strlen (dotnet/coreclr#22397)