fix "trim prefix" debug message in express:router

closes #2177