you should use "wb", otherwise it may expand line endings and things will get really confusing