Use proper standard conversion to deal with negative values of a char. Signed-off-by: Marco Costalba <mcostalba@gmail.com>