Ensure env variable contain only utf8 strings.

Fix problem where subprocess.call throws an exception if the env
variable contains unicode strings.