remove url params from file extension

patch for issue #199

fair warning: I never did anything before in python