bug fix: encode spaces as %20 in urls