Fix trailing weird character in urls