as3Chardet is a ActionScript port of the source from mozilla's automatic charset detection algorithm