Make resolve-uri work with types other than string.