@ayakushev99 #ocd but you can use fromTryCatch with scalaz 7

```scala
private def getCharset: Charset = {
  contentType match {
    case charsetMatcher(charset) => Validation.fromTryCatch(Charset.forName(charset)).toOption
    case _ => none[Charset]
  } | Charset.forName("ISO-8859-1")
}
```