User and Group thumbnails transferred with mime type application/octet-stream

All the thumbnails for users and groups appear to be sent with the wrong mime type.