Pass extension through untrailingslashit(). #2456