Replace control characters