Update Router.php

Fixed bug where urlForl remove all characters after an empty optional segment.