change type of ascii2petscii and ptr to char - this will fix signedness warning