Remove URI dependency to ensure compatibility with older ruby versions