Fixed a small bug caused by unsupported characters