Fix torrent creator when saving to a non-latin path in Windows.

Fixes issue #355 

Oddly enough the ofstream with toLocal8bit works under mingw(gcc) 4.7.2.