fix encoding_detect.c: char buf[MAX_LINE]->uint8_t buf[MAX_LINE]