Added support for spaces in page and media urls