Be careful when stripping out control codes