update check for uploaded files; if chardet fails on initial 500 chars, then bite the bullet and chardet entire file for a richer attempt at detection