Handle invalid UTF-8 chars in ps output