Fix String#chomp to work in IE6..8