forgot that chardet.detect() returns tuple