detect if document filename is URI, if so, make link to it and put that instead