strip querystrings from file links (#1440)