Changed to seamlessly provide valid URIs as strings in constructors.