concert unicode string to utf-8 in environment variables to match type of both key and value of dictionary