Remove libsbuf usage from fetch
Constify argument of p_string_append
Add function to overwrite a string