fix charset issue for php4