ENCHANCE: handle illegal URI characters in ID's