changed char encoding to ascii