Replace control codes