Fix URLs like foo.jpg?w=123&h=314