encode title for use in url