fix URI when title is empty; add related test