Fixed error in routing with trailing slash. See issue #27