fixes #2 - urlencode paths