Catch bad characters that will cause popen to fail

Windows only problem, need to update to python 3 to fix