converted characters to char codes