Replace spaces in page URLs with underscores