fix missing unicode encode for popen communicate