On SunOS there is pargs command that prints the command line arguments passed to the running process.
pargs
Is there is any similar command on other Unix env
Rather than using multiple commands to edit the stream, just use one - tr translates one character to another:
tr '\0' ' ' /cmdline