Replace append (strcat) with tor_asprintf
Replace read_file with read_file_to_str