Add tests for UTF-8 encoded torrcs on Windows

We need these tests for #25729 (moved).