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.

This is IMHO better approach to get rid of the warning than pull request #9.