cast uri typecheck return to true boolean, update regex to check for decoded url