Fix the build in Rails 4

It disgusts me to have to make this change, but it works around what appears to be a Rails 4 bug with mime types. Maybe we can leave this in until they fix the bug and then revert it.