Fix invalid url chars.