Added encodeURI to hyperlink function and uc (upper case) parameter to sort_title (which was also set as the default)