Fixed string escape on Windows.
Skip failing stream tests on Python 2 and Windows
Convert env to byte dictionary on Python 2.