Fixes #761.

When url requests directory but is not ended with slash,
redirects to slash-terminated version.