Fixes #112 check_encoding() can cause timeouts
SKIP_ENCODING_DETECTION should be 0 by default
Merge pull request #113 from JN-Jones/fix-112

Fixes #112 check_encoding() can cause timeouts