Sanitation of custom mimetypes and HAL responses