percent-encode spaces in URL paths