Extracts the protocol out of a given valid URI.
The returned string must be freed using g_free.
A URI string
The protocol for this URI.