allow case-sensitive env vars
Use text_type instead of str to handle unicode.
Merge branch 'case-sensitive-cfg' -- Allow case sensitive environment variables