Make message translatable
Correctly set content_type instead of deprecated mimetype