better debug on failed url encoding because of unicode
unicode encode titles before looking them up in mendeley, also improve code reuse