Add generic URI code from libxml2 repo

Signed-off-by: Harshavardhana <fharshav@redhat.com>