FIX: crash on invalid uri component