Make util.toString work in more browsers

This should work. However I think I've run into your quasi-infiniloop issue - more details in email.