added uri handling for windows