Fix issue #25 - trailing slash handling always added a trailing slash.