&gt; This is the inevitable result of the folly of trying to guess a file&#x27;s encoding.<p>I&#x27;d say just: &quot;This is the inevitable result of the folly of trying to guess.&quot; Guessing without confirmation request has no place in system libraries, nor in any &quot;serious&quot; (read: money-related) application.<p>Guessing is OK for providing nice defaults that work most of the time, but the user should have the final word.