Unicode bug

I went with `env = {str(key): str(value) for key, value in env.items()}` as it is robust to any future additions to the `env` dictionary.