Charset detect function moved to parserutils , to avoid registering callback function to parserutils from css.