Fix string -> bytes for Windows testing