.getEncodingTable, input check in .learnEncoding, finished .bufToStr