add warning if encoding could not be found
fix chardet feed method