Update content type checks in case of error to allow charset