backend fixes, encode spaces in urls