Changed encode_rle to accept char** instead of char* so we can pass back a char* out