Use g_content_type_guess() always with file name, not just with sample.

Some file types may be recognized incorrectly.