%set_env should ensure environment variables are bytes on Python 2

Should fix test failures on Python 2 + Windows