escape entities before inserting in channel