strip possible control characters