* `URLDecoder.decode("+")` will decode as `" "`, which isn't correct.
* Also encoded `/` characters (`%2F`) turn into path separators? It's probably OK to treat them the same as unencoded `/` characters, but it might be worth adding a comment to this effect.

Possibly something like the following would handle all these cases properly?
````scala
val pathFile = new File(path)
val resourceFile = {
  val nameWithSlash = if (name.startsWith("/")) name else ("/" + name)
  new File(pathFile.toURI + nameWithSlash)
}
```
You'd need to test it, of course. :)