File encoding
Main issue was when calling get_encoding
it would break if the file was in s3. Now using smart_open to read the bytes and now passing the bytes
into get_encoding
, not the file path. Also now the file is not being read twice since the bytes are being passed around.