fixed removal of trailing slash is not enough. (refs #1632)
Merge pull request #143 from amashigeseiji/t-1632-trailing-slash

fixed removal of trailing slash is not enough. (refs #1632)