deal with unknown encoding