Add mclogclean function for stripping control codes