Escape spaces in path segments properly

Play currently uses `java.net.URLEncoder.encode` to encode path segments. But this uses query string encoding, which encodes spaces as `+`. Spaces in path segments should be encoded as `%20`.

https://groups.google.com/d/msg/play-framework/esgvgNcJfl8/RhKNF0qLkH4J