Added encode so links work properly