Issue #3299826 by smokris: "Warning: fopen(1): failed to open stream: `8' is not a valid mode for fopen"