trim trailing equal sign from URIs