Better support sending data to the command.
Better support sending data to the command.

Manually decode stdout & stderr so an encoding isn't forced on stdin, then
the callers can decide what to do.

RELNOTES: None
PiperOrigin-RevId: 367346011
(cherry picked from commit 21c0da2fedbf500f74c32b1b6eb780636b091ff3)

bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple