Handle URLs ending in multiple bad characters