encode, IE6 solution