Firefox 20.0.1 on Windows "TypeError: environment can only contain string" problem

On Windows, if "from __future__ import unicode_literals" os.path.join() will always return unicode. But Firefox 20.0.1 refuse to take unicode in its environment.
The fix is simply convert the unicode back to string.