powertop: replace erroneous \n with \0; make numberic conversion more robust