Errors fixed concerning UTF-8 and response from subprocess