Fix URI target parsing