Fix route dispatcher extension stripping behavior + unit test