@drybjed discovered this with non-ascii environment variables and command line arguments to script and raw module.