Ensure a string is returned from iOS getText

In some cases the return value from instruments is not a string. So make sure it is. Fixes #4098