Test env vars with encoding