Birational extensions of regular local rings and local UFDs