Test auto detect encoding.