plug-ins: port file-header to GIO
plug-ins: rename output_printf() to simply print() in file header
Clean up code around calls to g_file_replace()

- use G_FILE_CREATE_NONE instead of 0
- don't put "Could not open <file> for writing: <error>" around the
  returned error, the returned message is already verbose