modifications to allow binary input when using execcmd. (specifically for piping binary content to a command)