Fix #288 - r_str_replace() - realloc invalid next size