convert unicode string to utf-8 in environment variables