encode entinies