Fix CID 1439871 and validate Unicode char strictly