Fix resolving of URIs with colons.