Fix Issue 824

Fix Issue 824, when executable file contains non-ascii, it fails to run