WRITABLEFOPEN instead of fopen, because the mode doesn't include writing
trickery, in another attempt at fixing #428355 and friends