[libvirt] [PATCHv3 RESEND 2/5] virstring.h/c: Util method for making some find and replace in strings