remove trailing slash
fixes #17