Normalize paths

uri_escape is not enough for normalizing paths for windows.