[Windows] Remove code concerning win32 platform.

Workaround to make it work on windows. Prevents **'str' does not support the buffer interface** bug.