[importer] Limit encoding detection to first 1000 characters
[importer] Extract encoding detection character limit to a constant