remove fragment identifier from URI when opening as local file