pathurlencode fixes