sanitize chat msgs & limit on returned msgs