make sure text is escaped