better file link format handling