bug fix for spaces in hrefs