Do not emit encoding warning when chardet is sure

The chardet module returns confidence 1.0 when BOM is found and this
case should be safe enough not to emit any warning about detection.