Updated cleanURL utility