Encode environment variables to ASCII.