Fixed mebBuilder to catch different types of URI strings.