Guard against frozen value in URI#initialize.