fixed encoding and removed deprecated chkconfig command