removes querystrings from mapping calls