Added a filter to filter out empty path parts.

This fixes an error where a string parsed to a URI without a path part got an empty pathpart. This resulted in an extra "/" being put at the begging of the query. That is:

scala> ("http://test.com:8080" / "something").toString
res10: String = http://test.com:8080//something