Handle badly encoded URLs.