working on charactere encoding