Set FileModeReadWrite when FileMode is set

Technically FileModeReadWrite only needs to be set before a call to
ReWrite, but setting it any time FileMode is changed should ensure it's
never missed.