Manual strip mime type parameters for action_dispatch < 4.0.