Fixed illegal character bug