Support trailing slash

By #105 request.

/cc @bogdan