remove invalid character output to install.log file