detector for charset