Append a trailing slash to URLs, judiciously

Per #436.