pass the buffer size to GetEnvironmentVariable() in characters, not bytes!