Make rle_code int everywhere instead of signed char.