make trailing slashes optional in URLs