Fix cp23205 check for invalid command in system()
Update to use Encoding.GetEncoding