Simpler encoding?
```scala
val url: URL = Play.resource(name).getOrElse(throw new RuntimeException("no resource"))
val gzipUrl: Option[URL] = Play.resource(name + ".gz")
new AssetInfo(name, url, gzipUrl)
```