removing control chars in messages