[libvirt] [PATCHv2 2/5] Add functions dealing with control characters in strings