Fix extensions always being defaulted.

Extensions should not magically be defaulted. Doing this makes generating URLs unpredictable and annoying.

Refs #4771