Make read_patch_file work on a strbuf.