Corrected incorrect tests, because autodetect encoding is only detected
once something is read. Also needed to set autodetectencoding to false for
supplied encoding overload.