add extensions to filenames so that Sprockets doesn't die

This is a workaround for https://github.com/sstephenson/sprockets/issues/347.

There's a possibly better long term solution suggested at https://github.com/sstephenson/sprockets/issues/347#issuecomment-25543201, though I can't imagine this should come up frequently enough to warrant it.