Couldn't this just be `case class HttpEncoding private[http] (name: String)` and then implement `def value`?