Fix typo in run_command when sending data that is not binary
Revert "Rejoin args list into a string for run_command when using an unsafe shell"

This reverts commit 4273cb2d8ead8f95fa0032da4082ffd7da338472.