added support for uri encoding for weird chars in the paths