fixed java char to ascii char convert