fixes #2059911 by Dave Cohen: construct a proper url ending in slash, even when locale.module enabled.