fixed: char->int used signed char instead of unsigned