avoid calling locale. …
treat ps output as bytes until we get a progname if progname won't decode, we don't know it anyway.