fix broken build
create utility class to reuse logic to convert URI to URL