Bugfix in Tools_url::encodePath(), if url not have a path part