Make util.toString work in more browsers