Revert "Allow optional trailing slash"

This reverts commit 234e54211f3d6efd25f27be5afb900d790053a16.