id_to_uri should handle ids with or without leading slash