gio: add g_output_string_[v]printf()

which are useful for porting FILE* based output code.