Moved an utility method to the TextUtils class so it doesn't get marshalled in the broker