strip out control characters from text