Allow setting URI attributes via constructor