The 2nd parameter detects the encoding automatically. It works with GB18030 as well.