Convert IRIs to URIs where necessary