check illegal chars fixed