* core: change encoding of the result returned by chat_read_file C API * remove unused dependency * remove pointer cast