```scala
      val range: HttpCharsetRange = if (name == "*") HttpCharsetRange.`*` else getCharset(name)
      optQ match {
        case None    ⇒ range
        case Some(q) ⇒ range.withQValue(q)
      }
```