removed extra empty line
improved algorithm to remove useless info from a files absolute path before generating its link
updated methods so that all links besides adfocus ones get encoded to UTF8 standards